package com.centaline.androidsalesblog.api.sale;

import com.centaline.androidsalesblog.api.SaleApi;
import com.centaline.androidsalesblog.model.responseobject.PostInternalRo;
import com.centanet.framework.interfaces.IResponseListener;

/**
 * 均价走势
 * Created by Ruan on 2016/2/16.
 */
public class PostInternalApi extends SaleApi<PostInternalRo> {

    private String cestcode;
    private String gscopeid;

    public PostInternalApi(Class<?> tag, Class<PostInternalRo> aClass, IResponseListener<PostInternalRo> iResponseListener) {
        super(tag, aClass, iResponseListener);
    }

    public void setCestcode(String cestcode) {
        this.cestcode = cestcode;
    }

    public void setGscopeid(String gscopeid) {
        this.gscopeid = gscopeid;
    }

    @Override
    protected void setParams() {
        putParams("posttype", "s");
        putStringParams("cestcode", cestcode);
        putStringParams("gscopeid", gscopeid);
    }

    @Override
    protected String getPath() {
        return "PostInternal";
    }
}
